Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL? - Mailing list pgsql-general

From Herouth Maoz
Subject Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL?
Date
Msg-id l03130302b43ce49ae1ea@[147.233.159.109]
Whole thread Raw
In response to Re: [HACKERS] Re: [GENERAL] Postgres INSERTs much slower than MySQL?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
At 17:08 +0200 on 22/10/1999, Tom Lane wrote:


> In the meantime, the conventional wisdom is still that you should use
> COPY, if possible, for bulk data loading.  (If you need default values
> inserted in some columns then this won't do...)

Yes it would - in two steps. COPY to a temp table that only has the
non-default columns. Then INSERT ... SELECT ... from that temp table to
your "real" table.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Windows Server?
Next
From: big.john@bigfoot.com
Date:
Subject: create index on numeric